package com.zzyl.elder.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zzyl.common.annotation.Excel;
import com.zzyl.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 余额对象 balance
 *
 * @author ruoyi
 * @date 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Balance", description = "余额")
public class Balance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 预交款余额 */
    @ApiModelProperty("预交款余额")
    @Excel(name = "预交款余额")
    private BigDecimal prepaidBalance;

    /** 押金金额 */
    @ApiModelProperty("押金金额")
    @Excel(name = "押金金额")
    private BigDecimal depositAmount;

    /** 欠费金额（元） */
    @ApiModelProperty("欠费金额")
    @Excel(name = "欠费金额", readConverterExp = "元=")
    private BigDecimal arrearsAmount;

    /** 支付截止时间 */
    @ApiModelProperty("支付截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentDeadline;

    /** 状态（0：正常，1：退住  2：入住未缴押金） */
    @ApiModelProperty("状态")
    @Excel(name = "状态", readConverterExp = "0=：正常，1：退住,2=：入住未缴押金")
    private Integer status;

    /** 老人ID */
    @ApiModelProperty("老人ID")
    @Excel(name = "老人ID")
    private Long elderId;

    /** 老人姓名 */
    @ApiModelProperty("老人姓名")
    @Excel(name = "老人姓名")
    private String elderName;

    /** 床位号 */
    @ApiModelProperty("床位号")
    @Excel(name = "床位号")
    private String bedNo;


}
